package com.cjh.mybatis12.scriping.xmltags;

import lombok.AllArgsConstructor;

/**
 * @Descripton 静态文本sql节点
 * @Author cjh
 * @Date 2023/6/12 14:44
 */
@AllArgsConstructor
public class StaticTextSqlNode implements SqlNode{

    private String text;

    @Override
    public boolean apply(DynamicContext context) {

//        将文本加入context
        context.appendSql(text);
        return true;
    }
}
